﻿namespace Api.Controllers
{
    /// <summary>
    /// 消息
    /// </summary>
    public class MessageController : EditingBaseController<MessageModel, MessageFilterModel, IMessageLogic>
    {
        public MessageController(ICurrentUser currentUser, IMessageLogic logic)
            : base(currentUser, logic)
        {
        }

        #region 判断消息是否可以转向
        [HttpGet]
        [Route("{id}")]
        public async Task<bool> CanJump(int id)
        {
            return await Task.Run(() => _logic.CanJump(id));
        } 
        #endregion
    }
}
